//
//  QTemplet.h
//  ImageEffect
//
//  Created by lichq on 14-1-16.
//  Copyright (c) 2014年 lichq. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "QStruct.h"


@interface QTemplet : NSObject

unsigned char *QScaleImagePixel(QImagePixelInfo imagePixelInfo, int newW, int newH);
unsigned char *QScaleImagePixelFitRegion(QImagePixelInfo imagePixelInfo, QRegionInfo *regionInfo, int region);

QTempletInfo QFillImageToTempletInRegion(QImagePixelInfo imagePixelInfo, QTempletInfo templetInfo, int region);


bool isCuPixelColorEqualRegionColor(unsigned char *templetPixel, int x, int y, int w, float * regionColor);
QTempletInfo createTempletInfo0();
QTempletInfo createTempletInfo1();
QTempletInfo createTempletInfo2();
QTempletInfo createTempletInfo3();
QTempletInfo createTempletInfo4();
QTempletInfo createTempletInfo5();
QTempletInfo createTempletInfo6();
QTempletInfo createTempletInfo7();


@end
